import { RcmdPage } from './../rcmd/rcmd';
import { TabsPage } from './../tabs/tabs';
import { Component,Injector,ViewChild } from '@angular/core';
import { IonicPage,Content,Slides } from 'ionic-angular';
import { HomePage } from '../home/home';
import { BasePage } from "../basePage";

/**
 * Generated class for the WelcomePage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-welcome',
  templateUrl: 'welcome.html',
})
export class WelcomePage extends BasePage {
  @ViewChild(Slides) slides: Slides;
  constructor(injector: Injector) {
    super(injector)
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad WelcomePage');
  }
  gotoHome(){
    let profileModal = this.modalCtrl.create(TabsPage);
    profileModal.onDidDismiss(data => {
    });
    profileModal.present();
  }

  slideChange(){
    if(this.slides.isEnd()){
      console.log(123)
      this.slides.pager=false;
    }else{
      this.slides.pager=true;
    }
  }

}
